package com.geekstudy.week9.service;

import com.geekstudy.api.UserApi;
import com.geekstudy.entity.User;
import org.springframework.stereotype.Service;

@Service("com.geekstudy.api.UserApi")
public class UserService implements UserApi {

    @Override
    public User findById(int id) {
        String name = "用户2021";
        User user = new User(id, name);
        return user;
    }

}
